/*
 clear .css file by nodejs 
*/
import React, { Component,  } from 'react'
import PropTypes from 'prop-types'
/*
* input输入控件外层 修改个人资料
* title : string 标题
* children : components 子组件
*/
export default class InputControl extends Component{
  static defaultProps={
    formCellClass : '',
  };
  static propTypes={
    formCellClass : PropTypes.string,
    title         : PropTypes.string.isRequired,
  };
  render(){
    let { title ,formCellClass} = this.props;
    return (
      <div className="form-cells" style={{"marginTop":"-1px"}}>
        <div className={`form-cell  ${formCellClass}`} >
          <div className="form-label">
            <p>{title}</p>
          </div>
          {this.props.children}
        </div> 
      </div>
    )
  }
}
